package com.chen.authority.model.dto;

import com.chen.authority.common.model.Dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 通知公告 数据传输对象
 *
 * @author chengy
 * @date 2022/11/25
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class NoticeDto extends Dto {

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空")
    @ApiModelProperty(value = "标题", required = true)
    private String title;

    /**
     * 内容
     */
    @ApiModelProperty("内容")
    private String content;

    /**
     * 类型（0通知 1公告）
     */
    @NotNull(message = "类型不能为空")
    @ApiModelProperty(value = "类型（0通知 1公告）", required = true)
    private Integer type;

}
